//
//  XMDynamicFilterView.h
//  XunMi
//
//  Created by MacBook on 2024/3/6.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, XMDynamicFilterType) {
    XMDynamicFilterTypeXin,
    XMDynamicFilterTypeFork,
    XMDynamicFilterTypeNear,
    XMDynamicFilterTypeSame
};

NS_ASSUME_NONNULL_BEGIN

@interface XMDynamicFilterModel : NSObject
@property (nonatomic, assign) BOOL isSelected;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, assign) XMDynamicFilterType type;

- (instancetype)initWithTitle:(NSString *)title isSelected:(BOOL)isSelected type:(XMDynamicFilterType)type;


@end


@interface XMDynamicFilterCollectionCell : UICollectionViewCell
@property (nonatomic, strong) XMDynamicFilterModel *model;
@property (nonatomic, strong) UIButton *typeBtn;
@end


@interface XMDynamicFilterView : UIView
@property (nonatomic, copy) void(^clickBlock)(XMDynamicFilterType type);
@end

NS_ASSUME_NONNULL_END
